package org.komarichin.google.blogger;


import org.komarichin.beans.IComment;
import org.komarichin.beans.ILanguage;
import org.komarichin.beans.IPost;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * &nbsp;Implementation {@link org.komarichin.beans.IPost}
 * </p>
 * User: Michael Komarichin
 * Date: Feb 6, 2010
 * Time: 4:31:46 PM
 */
public class Post implements IPost<String> {

    private static final long serialVersionUID = -2338745006499711851L;

    private String id;
    private String title;
    private String content;
    private boolean isDraft;
    private String authorName;
    private ILanguage lang;
    private String selfLink;
    private Date update;


    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getTitle() {
        return title;
    }

    @Override
    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String getContent() {
        return content;
    }

    @Override
    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean isDraft() {
        return isDraft;
    }

    @Override
    public void setDraft(boolean draft) {
        isDraft = draft;
    }

    @Override
    public String getAuthorName() {
        return authorName;
    }

    @Override
    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    @Override
    public ILanguage getLanguage() {
        return lang;
    }

    @Override
    public void setLanguage(ILanguage lang) {
        this.lang = lang;
    }

    @Override
    public String getSelfLink() {
        return selfLink;
    }

    @Override
    public void setSelfLink(String selfLink) {
        this.selfLink = selfLink;
    }

    @Override
    public List<IComment> getComments() {
        return null;
    }

    @Override
    public String getKeyWords() {
        return "";
    }

    @Override
    public void setKeyWords(String keywords) {

    }

    @Override
    public String getDescription() {
        return "";
    }

    @Override
    public void setDescription(String description) {

    }

    public Date getUpdate() {
        return update;
    }

    public void setUpdate(Date update) {
        this.update = update;
    }

    @Override
    public String toString() {
        return "Post{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", isDraft=" + isDraft +
                ", authorName='" + authorName + '\'' +
                ", lang='" + lang + '\'' +
                ", selfLink='" + selfLink + '\'' +
                '}';
    }
}
